package practice.oop;

public class OOPTest {
    public static void main(String[] args) {
        AAA aaa = new AAA(5);
        BBB bbb = new BBB(10);
        System.out.println(aaa.a);//5
    }
}

class AAA{
    int a;
    public AAA(int a){
        this.a=a;
    }
}

class BBB extends AAA{
    int a;
    public BBB(int a){
        super(a);
    }
}
